/*
package com.summer.framework.gate.server.config;

import com.summer.framework.gate.server.filter.MyRibbonRoutingFilter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.cloud.netflix.ribbon.support.RibbonRequestCustomizer;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.cloud.netflix.zuul.ZuulProxyAutoConfiguration;
import org.springframework.cloud.netflix.zuul.filters.ProxyRequestHelper;
import org.springframework.cloud.netflix.zuul.filters.route.RibbonCommandFactory;
import org.springframework.cloud.netflix.zuul.filters.route.RibbonRoutingFilter;
import org.springframework.context.annotation.Configuration;

import java.util.Collections;
import java.util.List;

*/
/**
 * @auther: 杨杰
 * @date: 2018/11/14 15:05
 * @description: 重写RibbonRoutingFilter
 *//*

@Configuration
@EnableZuulProxy
@EnableAutoConfiguration
@Slf4j
public class MyZuulProxyAutoConfiguration extends ZuulProxyAutoConfiguration {

    private List<RibbonRequestCustomizer> requestCustomizers = Collections.emptyList();

    @Override
    public RibbonRoutingFilter ribbonRoutingFilter(ProxyRequestHelper helper, RibbonCommandFactory<?> ribbonCommandFactory) {
        return new MyRibbonRoutingFilter(helper, ribbonCommandFactory, requestCustomizers);
    }
}
*/
